package com.ychs.entity;

import java.io.Serializable;
import java.util.List;

/**
 * copyright(c)2021 YYB.ALL rights Reserved
 * <p>
 * 描述:院系实体类
 *
 * @author 原玉波
 * @version 1.0
 * @date 2021/5/16
 */
public class College implements Serializable {
    /**
     * 主键
     */
    private int id;
    /**
     * 编码
     */
    private int code;
    /**
     * 名称
     */
    private String name;

    /**
     * 院系下面的专业
     */
    private List<Major> majors;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<Major> getMajors() {
        return majors;
    }

    public void setMajors(List<Major> majors) {
        this.majors = majors;
    }
}
